#include "Environment.h"


Environment* Environment::sm_instance = 0;


Environment* Environment::instance()
{
	if( sm_instance == NULL )
		sm_instance = new Environment();

	return sm_instance;
}

Environment::Environment()
	: m_impl( new EnvironmentImpl() )
{
}

Environment::~Environment()
{
}

void Environment::reset( EnvironmentImpl* impl )
{
	m_impl.reset( impl );
}

std::string Environment::getLanguage() const
{
	return m_impl->getLanguage();
}

bool Environment::isLargeScreen() const
{
	return m_impl->isLargeScreen();
}

bool Environment::isLiteVersion() const
{
	return m_impl->isLiteVersion();
}
